import p from "./p";

export function methodToCode(methodName: string, params: string[], content: string[] = []): string[] {
  return [
    `${methodName}(${params.join(', ')}) {`,
    ...p(content),
    `},`
  ];
}
